#include "namedPipe.hpp"

int main()
{
    // write
    NamedPipe fifo(comm_path, User);
    std::cout<<"client open named pipe done"<<std::endl;
    while (true)
    {
        //std::cout<<"client open named pipe done"<<std::endl;

        if (fifo.OpenForWrite())
        {
            std::cout << "Please Enter> ";
            std::string message;
            std::getline(std::cin, message);
            fifo.WriteNamedPipe(message);
        }
    }

    return 0;
}